// 组件统一注册
// 为了方便所有的页面都可以不用引用该组件，可以进行全局注册
// 该文件负责所有的公共的组件的全局注册   Vue.use

// 注册全局组件方式1 - 简单模式
// import Vue from 'vue'
// import PageTools from './PageTools'

// Vue.component('PageTools', PageTools)

// 注册全局组件方式2 - 插件方式
import PageTools from './PageTools/index.vue'
import UploadExcel from './UploadExcel/index.vue'
import UploadImage from './UploadImage/index.vue'
import Screenfull from './Screenfull/index.vue'
import ThemePicker from './ThemePicker/index.vue'
import LangSelect from './LangSelect/index.vue'

export default {
  install(Vue) {
    //  注册全局的通用栏组件对象
    Vue.component('PageTools', PageTools)
    Vue.component('UploadExcel', UploadExcel)
    Vue.component('UploadImage', UploadImage)
    Vue.component('Screenfull', Screenfull)
    Vue.component('ThemePicker', ThemePicker)
    Vue.component('LangSelect', LangSelect)
  }
}
